package com.yb.guigu.pick.core.config;

import com.yb.guigu.pick.core.bean.UserCodeExpire;
import com.yb.guigu.pick.core.bean.WechatConfig;
import com.yb.guigu.pick.core.publisher.GuiguPickEventPublisher;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/9 15:40
 * FileName: CoreConfig
 * Description:
 */

@Configuration
@EnableConfigurationProperties({WechatConfig.class, UserCodeExpire.class})
@EnableAspectJAutoProxy(proxyTargetClass = true,exposeProxy = true)
public class CoreConfig {

    @Bean
    GuiguPickEventPublisher guiguPickEventPublisher(){
        return new GuiguPickEventPublisher();
    }
}
